package com.encryption.feature.doc.ui.render
{
	import com.encryption.feature.doc.DocViewPopUpManager;
	import com.encryption.rpc.model.File;
	
	import flash.events.MouseEvent;

	public class ViewOperationLabel extends OperationLabel
	{
		public function ViewOperationLabel()
		{
			super();
			
			text = "查看";
		}
		
		override protected function get field():String
		{
			return "canView";
		}
		
		override protected function mouseClickHandle(event:MouseEvent):void
		{
			new DocViewPopUpManager().centerPopUp(File(target));
		}
	}
}